package com.ebupt.migu.common.pojo;

/**
 * @author tz
 */

public enum UserGroupStatus {

    CREATE("1","创建中"),

    WAITE_SUBMIT("2","待提交（草稿箱）"),

    WAITE_UPDATE("3","待更新"),

    UPDATING("4","更新中"),

    FINISH("5","已完成"),

    EXPORT_FAIL("6","提取失败"),

    IMPORT_FAIL("7","导入失败"),

    INVALID("8","已失效（锁定状态）"),

    DELETE("9","已删除"),

    SQL_FAIL("10","执行sql失败"),

    LABEL_GROUP("21","统一标签平台临时客群");

    private String val;

    private String msg;

    public String getVal(){
        return val;
    }

    public String getMsg(){
        return msg;
    }

    public static String getMsg(String val){
        for (UserGroupStatus v : UserGroupStatus.values()) {
            if(v.val.equals(val)){
                return v.msg;
            }
        }
        return "未定义的错误";
    }

    UserGroupStatus(String val, String msg){
        this.val = val;
        this.msg = msg;
    }
}
